plat: intel: Add MMC OCR voltage information for initialization
authorTien Hock, Loh <[email protected]>
Fri, 8 Mar 2019 01:26:24 +0000 (09:26 +0800)
committerTien Hock, Loh <[email protected]>
Fri, 8 Mar 2019 01:26:24 +0000 (09:26 +0800)
MMC stack needs OCR voltage information for the platform to initialize
MMC controller correctly.

Signed-off-by: Tien Hock, Loh <[email protected]>
plat/intel/soc/stratix10/bl2_plat_setup.c

index 91e3b0ac51ee494de33ecfddeb9c5511011c18a0..aa68906dac9def9e8b3fd2607ea782273590ae5c 100644 (file)
@@ -99,6 +99,7 @@ void bl2_el3_plat_arch_setup(void)
        dw_mmc_params_t params = EMMC_INIT_PARAMS(0x100000);
 
        info.mmc_dev_type = MMC_IS_SD;
+       info.ocr_voltage = OCR_3_3_3_4 | OCR_3_2_3_3;
 
        switch (boot_source) {
        case BOOT_SOURCE_SDMMC: